home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
wildcat
/
rotscrns.zip
/
ROTATE.DOC
< prev
next >
Wrap
Text File
|
1992-12-14
|
5KB
|
177 lines
ROTATE Version 1.01
By Andy Hansis & NutHut Software
Compiled 12/14/92
(c) 1992
This program is relased as shareware and may be used for a 30 day free
evaluation period free of charge. If after 30 days you decide you want
to continue to use this software, you must pay a $5.00 registration fee
to the author. Continuing to use this software after the 30 day evaluation
period is a violation of civil and criminal law.
The author of this program accepts no responsibility for the operation of
this software, any damage, destruction, or loss of data, time or assets that
may result from the use of this software. Use at your own risk. The
author has done everything he can to assure that this program works properly.
Support can be obtained thru the folowing :
The Nut House BBS
602-459-3656
300/1200/2400 bps
FidoNet 1:309/13.0 @FidoNet.Org
PoliceNet 150:300/8.0 @PoliceNet.Org
CompuServe 72347,3530
To Register:
Send your request for registration containing the following:
Name:
Address:
Phone Number:
Number Of Copies To be Registered:
Make sure you note the registration is for ROTATE!
And a check or money order payable to Andy Hansis for $5.00 per
copy you want to:
Andy Hansis
1031 N. 7'th Street
Sierra Vista, Arizona 85635
Setting up the rotate program:
First you need to create a "pool" area for your screens to be rotated.
See the sample directory structure for how I did this. In my example I
am rotating a Goodbye, Hello1, and Hello2 display file and a file1, Msg1,
and Main1 menu file.
Sample directory structure:
|-------- Goodbye
|
| |-------- Hello1
| |
| Screens |-------- Hello2
|---------------|
| |-------- File
| |
| |-------- Msg
C:\----| |
| |-------- Main
|
| WC30 |------- Disp
|---------|
| |------- Menu
| |
| |------- Help
Now that we have made our "pool" directories, we need to copy the screens
into the appropriate directory. The rename your screens to numbered filenames
starting with 1 for each pool directory.
For example:
1.SCR 6.SCR
1.BBS 6.BBS
2.SCR 7.SCR
2.BBS 7.BBS
3.SCR 8.SCR
3.BBS 8.BBS
4.SCR 9.SCR
4.BBS 9.BBS
5.SCR 10.SCR
5.BBS 10.BBS
Ok, now that we have lots of directories full of lots of displays we
need to make a file in each pool directory named ROTATE.FLG.
ROTATE.FLG is a two line file consisting of the number of files to be rotated
Lets say that our Goodbye pool directory has the above mentioned screens,
1.SCR and .BBS thru 10.SCR and .BBS, then the first line in ROTATE.FLG is
10. The second line in the .FLG file is the next screen to move when the
program is executed again. for now we will just place a 1 in the second line.
So our example ROTATE.FLG file looks like this in the Goodbye pool directory:
10
1
Now go to the other pool directories and make a .FLG file for them.
The Configuration File:
The Config file consists of to key sections. The first section is
the first line in the file which is the number of rotations to take place.
in my example file we want to make 6 file rotations. The second section
are the actual paths to move from, and the paths and filenames minus the
extension to move to. For each rotation operation there are two entries:
1. The path to move the file from.
Note that there are NO trailing backslashes on the path name.
2. The path and filename to move the file to.
Note that there is NO extension on the file name. This allows you to
move both .BBS and .SCR or just a .BBS depending on what you have
in the pool directories.
In the first move pair in the example configuration file, what the program
does is the same thing as this DOS command:
COPY C:\SCREENS\GOODBYE\1.* C:\WC30\DISP\GOODBYE.*
Thus we will copy 1.SCR and 1.BBS from our goodbye pool to our display
directory as GOODBYE.SCR and GOODBYE.BBS.
sample ROTATE.CFG:
6
c:\screens\goodbye
c:\wc30\disp\goodbye
c:\screens\hello1
c:\wc30\disp\hello1
c:\screens\hello2
c:\wc30\disp\hello2
c:\screens\file
c:\wc30\menus\file1
c:\screens\msg
c:\wc30\menus\msg1
c:\screens\main
c:\wc30\menus\main1
That's it, Now all you have to do is put a call in your batch file
to change to the directory that you have ROTATE.EXE and ROTATE.CFG
in and call ROTATE. ROTATE can be called from any directory as long
as it finds a copy of ROTATE.CFG in the current default directory.